package testEnvironment.actions;

import testEnvironment.BlocksWorld;

import com.agentfactory.logic.update.lang.Predicate;
import com.agentfactory.teleoreactive.interpreter.Utilities;
import com.agentfactory.teleoreactive.interpreter.mentalstate.Action;

public class DoPlace extends Action {
	private BlocksWorld b = BlocksWorld.getIntance();
	@Override
	public boolean execute(Predicate activity) {
		if (activity.functor().equals("place")) {
			String content = Utilities.presenter.toString(activity.termAt(0));
			return b.place(content);
		}
		return false;
	}

}
